﻿namespace HiMap.Geometry
{
    using System;

    public class GeometryMath
    {
        public double AreaOfPolygon(POINTD[] pts)
        {
            double area = 0;
            VC.KWG_MATH_AREA_POLYGON(pts.Length, pts, ref area);
            return area;
        }

        public static bool Intersection(POINTD p11, POINTD p12, POINTD p21, POINTD p22, ref POINTD p)
        {
            return VC.KWGIntersection(p11, p12, p21, p22, ref p);
        }
    }
}

